import request from '@/utils/request'
import qs from 'qs'

export function getXml(modelId) {
  return request.get(`buss/modeler/${modelId}`)
}

export function saveXml(modelId, params) {
  return request.post(`buss/modeler/${modelId}/save`, params)
}

export function users(params) {
  return request.get('admin/user/list?' + qs.stringify(params, {indices: false}))
}

export function roles() {
  return request.get('admin/role/tree')
}
